package com.bestcem.xm.award.controller.param.award;

import com.bestcem.xm.award.grpc.service.param.award.DeleteAttachmentParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * 定制奖励删除附件 请求参数
 *
 * @author jie.yao <jie.yao@idiaoyan.com>
 * @version v3.0
 * @date 2021/8/18 13:50
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DeleteAttachmentQuery {

    /**
     * 附件id
     */
    private String attachmentId;

    /**
     * 奖励id
     */
    private String awardId;

    /**
     * 入参转换为service层所需参数
     *
     * @return DeleteAttachmentParam
     */
    public DeleteAttachmentParam getDeleteAttachmentParam() {
        DeleteAttachmentParam param = new DeleteAttachmentParam();
        BeanUtils.copyProperties(this, param);
        return param;
    }
}
